package org.linlinjava.litemall.admin.controller.cashsettlement;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

@Data
@ApiModel("金额差异查询参数")
public class AmountDifferenceReqVO {

    @ApiModelProperty("ID")
    private Integer id;

    @ApiModelProperty("门店ID")
    @NotNull(message = "门店ID不能为空")
    @Positive(message = "门店ID必须是正整数")
    private Integer shopId;

    @ApiModelProperty("用户ID")
    @Positive(message = "用户ID必须是正整数")
    private Integer adminId;

    @ApiModelProperty("差异金额（精确匹配或范围查询时可扩展）")
    @DecimalMin(value = "0.00", message = "金额不能小于0")
    private BigDecimal amount;

    @ApiModelProperty("是否启用（1=启用，0=禁用）")
    @NotNull(message = "启用状态不能为空")
    private Boolean enabled;


}